<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>Sample of websocket with golang</title>
    <script>
        $(function () {
            const $ul = $('#msg-list');
            const ws = new WebSocket("ws://192.168.3.18:22080/v1/ws?tenant=default&map_id=8794");
            ws.onmessage = function (e) {
                $('<li>').text(e.data).appendTo($ul);
            };
        });
    </script>
</head>
<body>
<ul id="msg-list"></ul>
</body>
</html>
